/**
 * Created by bing on 2019/4/4.
 */
package com.wxb.hello.generic.type;

import java.util.ArrayList;
import java.util.List;

/**
 * describe:
 *
 * @author : wxbing000@gmail.com
 * @version : v1.0
 * @date : 2019-04-04 9:19
 */
public class GenericTypeDemo {

	public static void main(String[] args) {
		List<String> stringArrayList = new ArrayList<>();
		List<Integer> integerArrayList = new ArrayList<>();

		Class classStringArrayList = stringArrayList.getClass();
		Class classIntegerArrayList = integerArrayList.getClass();

		if (classStringArrayList.equals(classIntegerArrayList)) {
			System.out.println("泛型测试类型相同");
		}
	}

}
